﻿#include "stdafx.h"
#include "AstDelete.h"
#include "CodeGenerate/CallGen.h"
#include "modules.h"
#include "FunctionInstance.h"

CodeGen * AstDelete::makeGen(SiContext * parent)
{
	auto *p=new CallGen();
	auto *func= CLangModule::getFunction("freeObject");
	p->function = new FunctionInstance(func);
	p->params.push_back(expr->makeGen(parent));
	return p;
}
